package jjoms.model.item;

import java.util.HashMap;
import java.util.List;

import jjoms.model.member.MemberVO;

import org.springframework.stereotype.Service;

public interface ItemService {
	public void register(ItemVO vo);
	public ItemVO findItemByName(String name);
	public List<ItemVO> getItemList(String keyword);
	public ItemVO getItemContent(int itemNo);
	public void update(ItemVO vo);
	public void delete(int itemNo);
	public HashMap fileDownload(String filename);
	public HashMap getCategory();
	public void addCart(CartVO cvo);
	public void postResult(PostVO pvo);
	public List<PostVO> getPostHuki(int itemNo);
	public void totalPay(String memberId,int total);
	//public void pointUp(String memberId, int pointUp, String selId);
	public void insertToPurchasedList(String memberId , int itemNo);
	public List<ItemVO> getPurchasedList(String memberId);
	public int getAverageEvaluation(int itemNo);
	public void sendMessage(MessageVO messvo);
	public List<CartVO> getCartList(String memberId);
	public ItemVO getCartInfoList(int itemNo);
	public void postDelete(PostVO pvo);
	public List<ItemVO> showUploadList(String memberId);
	
	public void updateMoneyAndPoint(String memberId, int itemNo) throws Exception;	
	public void cartDelete(int no);
}
